<div class="division" style="margin-left:0; margin-right:0">
<div class="finder-filter-body " >
  <{if $filter.type_id}>
  <input type="hidden" name="type_id" value="<{$filter.type_id}>"/>
  <{/if}>
<table>
<tr title="同时按住Ctrl可以多选">
  <td ><label for="f_cat"><{t}>商品分类<{/t}></label><select size="5" multiple="multiple" id="f_cat" title="同时按住Ctrl可以多选"  name="cat_id[]">
  <option style="font-weight:bold" value="_ANY_" <{if !$cat_id}>selected="selected"<{/if}>><{t}>- 所有分类 -<{/t}></option>
  <{foreach from=$filter.cats item=cat key=key name="_s"}>
  <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>"><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}>
  <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>"><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}>
  <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>"><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}>
  <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>"><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}>
  <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>"><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}>
  <option <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$cat.cat_id}>" <{if $cat.cat_id==$cat_id}>selected<{/if}>><{$cat.cat_name|paddingleft:$cat.step*4-4:'&nbsp;'}></option>
  <{/foreach}>
  </select>

  </td>
  <td><label for="f_brand"><{t}>品牌<{/t}></label>
    <select id="f_brand" name="brand_id[]" size="5" multiple="multiple">
      <option style="font-weight:bold" value="_ANY_" selected="selected"><{t}>任意<{/t}></option>
      <{foreach from=$filter.brands item=brand name="_s"}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}><option<{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$brand.brand_id}>"><{$brand.brand_name}></option><{/foreach}>
    </select>
  </td>
  <{if count($filter.tags)>0}>
  <td><label for="f_tag"><{t}>标签<{/t}></label>

    <select id="f_tag" name="tag[]" size="5" multiple="multiple">
      <option style="font-weight:bold" value="_ANY_" selected="selected"><{t}>全部<{/t}></option>
      <{foreach from=$filter.tags item=tag name="_s"}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}><option<{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$tag.tag_id}>"><{$tag.tag_name}></option><{/foreach}>
    </select>
  </td>
  <{/if}>
    <{if count($filter.keywords)>0}>
  <td><label for="f_keywords"><{t}>关键词<{/t}></label>

    <select id="f_keywords" name="keywords[]" size="5" multiple="multiple">
      <option style="font-weight:bold" value="_ANY_" selected="selected"><{t}>任意<{/t}></option>
      <{foreach from=$filter.keywords item=keywords name="_s"}><option<{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$keywords.keyword}>"><{$keywords.keyword}></option><{/foreach}>
    </select>
  </td>
  <{/if}>
  <{if count($filter.supplier)> 0}>
  <td><label for="f_tag"><{t}>供应商<{/t}></label>

    <select id="f_tag" name="supplier_id[]" size="5" multiple="multiple">
      <option style="font-weight:bold" value="_ANY_" selected="selected"><{t}>全部<{/t}></option>
      <{foreach from=$filter.supplier item=supplier name="_s"}>
        <{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}>
         value="<{$suppiler.supplier_id}>"><{$supplier.supplier_brief_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$supplier.supplier_id}>"><{$supplier.supplier_brief_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$supplier.supplier_id}>"><{$supplier.supplier_brief_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$supplier.supplier_id}>"><{$supplier.supplier_brief_name}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$supplier.supplier_id}>"><{$supplier.supplier_brief_name}><option<{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$supplier.supplier_id}>"><{$supplier.supplier_brief_name}></option><{/foreach}>
    </select>
  </td>
  <{/if}>
</tr>
</table>
<{if ($filter.props && $filter.type_id !="_ANY_") || $_finder.data.type_id!=""}>
<{counter start=0 assign="result" print=false }>
<{foreach from=$filter.props key=key item="prop"}>
  <{if $prop.type == 'select'}>
    <{if ($result mod 5) eq 0 }>
    <table>
    <tr>
    <{/if}>
      <td><label for="f_p_<{$key}>"><{$prop.name}></label>
    
        <select id="f_p_<{$key}>" name="props[<{$key}>][]" size="5" multiple="multiple">
          <option style="font-weight:bold" value="_ANY_" selected="selected"><{t}>任意<{/t}></option>
          <{foreach from=$prop.options item=item name="_s" key="value"}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}><{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}><option<{if $smarty.foreach._s.iteration is odd}> class="row2"<{/if}> value="<{$value}>"><{$item}></option><{/foreach}>
        </select>
      </td>
    <{if ($result mod 5) eq 4 }>
    </tr>
    </table>
    <{/if}>
    <{counter assign="result" print=false }>
  <{/if}>
<{/foreach}>
<{if ($result mod 5) neq 0 }>
</tr>
</table>
<{/if}>
<{/if}>
</div></div>

<div style="margin-top:-5px; width:300px"><span class="notice-inline-icon"><{t}>以上选项，可以按住CTRL来进行多选<{/t}></span></div>